<extend name="Layout:layout_dialog" />
<block name="body_before">    
    <script src="__SCRIPT__kindeditor-4.1.11/kindeditor-all-min.js" type="text/javascript"></script>
</block>
<block name="body_main">
    <if condition="$my">
        <a href="{:U('my_inbox')}">返回</a>
    </if>
    <fieldset class=" xsui-form-view">
        <div class="xsui-form-field">
            <label>发件人：</label>{$data.from_user}
        </div>
        <div class="xsui-form-field">
            <label>标题：</label>{$data.subject}
        </div>
        <div class="xsui-form-field">
            <label>内容：</label>
            <div style="max-height:100px; overflow-y: auto;">第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />第三轮粉丝搭建了飞机螺丝钉飞机<br />{$data.body}</div>
        </div>
        <div class="xsui-form-field">
            <label>时间：</label>{$data.create_time}
        </div>
    </fieldset>
    <form action="{:U('message_edit_save')}" method="post" class="xsui-form">
        <fieldset>
            <legend><a href="#" class="xsui-switch">[-]</a>回复消息</legend>
            <div class="xsui-switch-content">
                <div class="xsui-form-field">
                    <label>收件人：</label>
                    <input type="text" name="to_user" placeholder="收件人,多个之间以英文逗号隔开" value="{$data.to_user}" required="required" size="59" />
                </div>
                <div class="xsui-form-field">
                    <label>标题：</label>
                    <input type="text" name="subject" value="{$data.subject}" placeholder="标题"  required="required" size="61" />
                </div>
                <div class="xsui-form-field">
                    <label>内容：</label>
                    <textarea name="body" class="pm-editor" placeholder="正文内容">{$data.body}</textarea>
                </div>
            </div>
        </fieldset>
        <button type="submit" class="xsui-btn ui-state-default"><i class="fa fa-save"></i>保存</button>
        <button type="reset" class="xsui-btn ui-state-default">重置</button>
        <input type="hidden" name="id" value="{$data.id}"/>
    </form>
</block>